The Aircall API allows you to harness telephony features within your applications, enabling you to manage calls, contacts, users, and more programmatically. With Pipedream's capability to leverage this API, you can automate call logging, synchronize contact information across platforms, dynamically route calls based on business logic, and generate analytics and reports.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
aircall: {
type: "app",
app: "aircall",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.aircall.io/v1/integrations/me`,
headers: {
Authorization: `Bearer ${this.aircall.$auth.oauth_access_token}`,
},
})
},
})
Automated Call Logging to CRM: After a call ends on Aircall, trigger a workflow on Pipedream that captures call details and logs them into a CRM like Salesforce or HubSpot. This ensures that all interaction history is up-to-date and easily accessible for sales and support teams.
Contact Synchronization Workflow: Set up a Pipedream workflow that listens for new contacts or updates in Aircall and automatically syncs them to other apps such as Google Contacts or Mailchimp. This keeps all contact lists in sync without manual data entry, reducing errors and saving time.
Dynamic Call Routing Based on Support Tickets: Create a Pipedream workflow that checks incoming calls against open support tickets in a service like Zendesk. Depending on the priority or status of the ticket, the call can be routed to the appropriate support agent or department, improving response times and customer satisfaction.
Aircall uses OAuth authentication. When you connect your Aircall account, Pipedream will open a popup window where you can sign into Aircall and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Aircall API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://dashboard.aircall.io/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope=public_api
POST
https://api.aircall.io/v1/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}